home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cocktail / cg.lha / cg / test-c / g.cg next >
Text File  |  1992-11-24  |  268b  |  20 lines

  1. TREE IMPORT {
  2. # include "Idents.h"
  3. typedef int MyInt;
  4. }
  5.  
  6. GLOBAL {
  7. # define closeint(a)    (void) printf ("%d ", a);
  8. }
  9.  
  10. RULE
  11.  
  12. Node    = [Mark] [Ident: tIdent] [Hex: MyInt] <
  13.   Node0    = .
  14.   Node1    = Child1: Node .
  15.   Node2    = Child1: Node Child2: Node .
  16. > .
  17. n    = <
  18.   m    = [m] .
  19. > .
  20.